package com.yang.dao;

import com.yang.entity.*;

import java.util.List;

public interface CheckInDao {

    /**
     * 通过房号查找租房钱
     * @param roomNum
     * @return
     */
    public List<RateEntity> selectMoneyByroomNum(String roomNum);

    /**
     * 通过rateId找到rate实体
     * @param rateId
     * @return
     */
    public RateEntity selectRateById(long rateId);

    /**
     *保存旅客
     * @param guestEntity
     * @return
     */
    public boolean saveGuest(GuestEntity guestEntity);

    /**
     * 更新房间
     * @param roomEntity
     * @return
     */
    public boolean updataRoom(RoomEntity roomEntity);

    /**
     * 保存订单
     * @param orderFormEntity
     * @return
     */
    public boolean saveOrderForm(OrderFormEntity orderFormEntity);

    /**
     * 保存liver_relation
     * @param liverRelationEntity
     * @return
     */
    public boolean saveLiverRelation(LiverRelationEntity liverRelationEntity);

}
